<!--  -->
<template>
  <div class="detailHeaderBox">
    <div class="disFlxJS">
      <div class="disFlxAC" style="width: 100%">
        <img class="img" :src="imageUrl" alt="" />
        <div class="info">
          <template v-for="(item, index) in items">
            <slot v-if="item.slot" :name="item.slot"></slot>
            <div v-else :key="index">
              <span>{{ item.label }}：</span>
              <span>{{ item.value }}</span>
            </div>
          </template>
        </div>
      </div>
      <slot name="action"></slot>
    </div>
    <div class="_mt-10">
      <slot name="buttons"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    imageUrl: {
      required: true,
    },
    items: {
      type: Array,
      required: true,
      default: () => [],
    },
  },
  components: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
}
</script>
<style scoped lang="less">
.detailHeaderBox {
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  .img {
    width: 220px;
    height: 140px;
    object-fit: contain;
  }
  .info {
    margin-left: 15px;
    line-height: 28px;
    font-weight: bold;
    width: 100%;
  }
}
</style>